/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package round.table.knights.three;

/**
 *
 * @author jperez
 */
public class BraveKnight implements Knight {
    private String name;
    private Quest quest;

    public BraveKnight() {

    }

    public BraveKnight(String name, Quest quest) {
        this.name = name;
        this.quest = quest;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Quest getQuest() {
        return quest;
    }

    public void setQuest(Quest quest) {
        this.quest = quest;
    }


    



    @Override
    public void embarkOnQuest() throws QuestFailedException {
        System.out.print(name + " is going to ");
        quest.embark();
    }

}
